import os

# 服务器响应地址
host = '0.0.0.0'
# 服务器监听端口
port = 5000
# 服务器路由前修饰符
prefixURL = ''
# 启用SSL/TLS
protocol = 'http'  # http or https
debug = False
# require simple password authentication
simple_password = "aaa"

# 项目ROOT文件夹位置
RootPath = os.path.abspath(os.path.dirname(__file__))
# 项目HTML文件夹位置
html_path = os.path.join(RootPath, 'html')
# 项目提供文件服务的文件夹位置
FilePath = os.path.join(RootPath, 'files')
# 项目接收文件的存储位置
UploadPath = os.path.join(RootPath, 'files', 'upload')
# 项目提供下载的文件的位置
DownloadPath = os.path.join(RootPath, 'files', 'download')

# SSL文件夹
SslPath = os.path.join(RootPath, 'server', 'utils', 'ssl')
# SSL cer证书
# 若需要重新生成请删除该文件并重启服务即可
ssl_cert = os.path.join(SslPath, 'self_signed.cer')
ssl_privateKey = os.path.join(SslPath, 'self_signed_pkey.key')
ON = 'myOrgan'
CN = '127.0.0.1'
country = 'cn'
